﻿Imports System.Runtime.Serialization

Public Class RawObjectDescriptor
    Implements ISerializable

#Region "Serialization"
    Private Sub New(info As SerializationInfo, context As StreamingContext)

    End Sub


    Public Sub GetObjectData(info As SerializationInfo, context As StreamingContext) Implements ISerializable.GetObjectData
        info.AddValue("version", 1)

        'Version 1 data

    End Sub
#End Region


    Public Property ObjectType As ObjectType
    Public Property TypeName As String
    Public Property BaseFileName As String
    Public Property ObjectClasses As HashSet(Of ObjectSubType)
    Public Property ShowInTree As Boolean = True
    'Public Property editorType As Type

    Public Sub New(objectType As ObjectType, typeName As String, baseFileName As String, editorType As Type, objectClasses As ObjectSubType())
        Me.ObjectType = objectType
        Me.TypeName = typeName
        Me.BaseFileName = baseFileName
        Me.ObjectClasses = New HashSet(Of ObjectSubType)(objectClasses)
        'Me.editorType = editorType
    End Sub

End Class
